home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / desktop / dibquant.zip / DIBQUANT.H < prev    next >
C/C++ Source or Header  |  1994-06-17  |  1KB  |  37 lines

  1. /* 
  2. ** DIBQuant version 1.0
  3. ** Copyright (c) 1993 Edward McCreary.
  4. ** All rights reserved.
  5. **
  6. ** Redistribution and use in source and binary forms are freely permitted
  7. ** provided that the above copyright notice and attibution and date of work
  8. ** and this paragraph are duplicated in all such forms.
  9. ** THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  10. ** IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  11. ** WARRANTIES OF MERCHANTIBILILTY AND FITNESS FOR A PARTICULAR PURPOSE.
  12. */
  13.  
  14. #ifndef _DIBQUANT_H
  15. #define _DIBQUANT_H
  16.  
  17. /* palette generation methods */
  18. #define IDX_MEDIAN          0       /* perform median cut */
  19. #define IDX_POPULARITY      1       /* perform popularity sort */
  20. #define IDX_DEFAULT         2       /* use default palette */
  21.  
  22. /* dithering methods */
  23. #define IDX_NONE            0       /* no dither */
  24. #define IDX_ORDERED         1       /* ordered dither */
  25. #define IDX_JITTER          2       /* jitter preprocessing */
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. LPSTR FAR PASCAL QuantizeDIB(LPSTR lpDIB, int nPalette, int nDither,FARPROC lpStatus);
  32.  
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36.  
  37. #endif /* _DIBQUANT_H */